
import Vue from 'vue'
import App from './App'
import store from './store'
import router from './router'
import ElementUI from 'element-ui'  //饿了么组件库
import 'element-ui/lib/theme-default/index.css' //饿了么组件库样式
import NProgress from 'nprogress' //Progress 进度条
import 'nprogress/nprogress.css'  //Progress 进度条样式

Vue.use(ElementUI)

router.beforeEach((to, from, next) => {
    NProgress.start() //开启Progress
    next()
});
router.afterEach(() => {
    NProgress.done() //结束Progress
});

Vue.config.productionTip = false

new Vue({
    el: '#app',
    router,
    template: '<App/>',
    components: {App}
})
